<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
      onload=function () {
      let elementById = document.getElementById("a");
      elementById.onclick=function () {
        history.go(1);
        }
      }
    </script>
</head>
<body>
  <h1><a href="test2.html">A界面</a></h1>
  <input type="button" value="前进" id="a">
</body>
</html>